﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<EKAABSInformationManagement.Database.requirementRecords>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="<%: Url.Content("~/Scripts/userJs/requirementRecords.js") %>" type="text/javascript"></script>
    <div class="dashboard">
        <input type="button" id="btnInsert" value="添加申报记录" class="addUpdateRequirement" />
        <input type="button" id="btnDelete" value="删除选中记录" />
    </div>
    <div class="content">
        <p class="thead">
        </p>
        <table id="tblMain">
            <tr>
                <th>
                    <input id="cbkAll" type="checkbox" />
                </th>
                <th scope="col">
                    账号ID
                </th>
                <th scope="col">
                    物品名
                </th>
                <th scope="col">
                    序列号
                </th>
                <th scope="col">
                    描述
                </th>
                <th scope="col">
                    状态
                </th>
                <th scope="col">
                    申请员工
                </th>
                <th scope="col">
                    申请日期
                </th>
                <th scope="col">
                </th>
            </tr>
            <%foreach (var a in Model)
              {%>
            <tr>
                <td class="row">
                    <input id="<%=a.ID %>" type="checkbox" />
                </td>
                <td class="row">
                    <%=a.ID %>
                </td>
                <td>
                    <%=a.productName %>
                </td>
                <td class="row">
                    <%=a.number %>
                </td>
                <td>
                    <%=a.description %>
                </td>
                <td class="row" status="<%=a.status %>">
                    <%= Enum.GetName(typeof(EKAABSInformationManagement.Service.status), a.status)%>
                </td>
                <td>
                    <%=a.employee %>
                </td>
                <td>
                    <%=a.date %>
                </td>
                <td>
                    <input class="addUpdateRequirement" id="btnUpdate" type="button" name="update" value="修改" />
                </td>
            </tr>
            <%} %>
        </table>
    </div>
    <div id="greybackground">
    </div>
    <div class="popupWindow">
        <p id="closePopup">
            关闭</p>
        <h2>
            添加新的网络状态</h2>
        <table>
            <tr>
                <td>
                    账号ID：
                </td>
                <td>
                    <input id="ID" type="text" /><span> *</span>
                </td>
                <td>
                    物品名：
                </td>
                <td>
                    <input id="productName" type="text" /><span> *</span>
                </td>
            </tr>
            <tr>
                <td>
                    序列号：
                </td>
                <td>
                    <input id="number" type="text" /><span> *</span>
                </td>
                <td>
                    描述：
                </td>
                <td>
                    <input id="description" type="text" /><span> *</span>
                </td>
            </tr>
            <tr>
                <td>
                    状态：
                </td>
                <td>
                    <select id="networkStatus">
                        <option value="1">正常状态</option>
                        <option value="2">两周内过期</option>
                        <option value="3">已经过期</option>
                    </select>
                </td>
                <td>
                    申请员工：
                </td>
                <td>
                    <input id="employee" type="text" /><span> *</span>
                </td>
            </tr>
            <tr>
                <td>
                    申请日期：
                </td>
                <td>
                    <input id="requirementDate" type="text" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td style="text-align: right;">
                    <input type="button" id="btnSubmit" value="确定" />
                </td>
                <td style="text-align: center;">
                    <input type="reset" id="btnReset" value="清空" />
                </td>
                <td>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
